load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "skiperrs_lib",
    srcs = ["main.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/cmd/skiperrs",
    visibility = ["//visibility:private"],
    deps = [
        "//pkg/cmd/cr2pg/sqlstream",
        "@com_github_lib_pq//:pq",
    ],
)

go_binary(
    name = "skiperrs",
    embed = [":skiperrs_lib"],
    visibility = ["//visibility:public"],
)
